package cn.lili.modules.grab.xdxt.service;

import cn.lili.modules.grab.xdxt.reps.order.CreateOrderReps;
import cn.lili.modules.grab.xdxt.reps.order.OrderFreightPreviewReps;
import cn.lili.modules.grab.xdxt.res.order.CreateOrderReq;
import cn.lili.modules.grab.xdxt.res.order.OrderFreightPreviewReq;
import com.fasterxml.jackson.core.JsonProcessingException;

public interface XdxtOrderServie {

    /**
     * 运费计算
     *
     * @param orderFreightPreviewReq 请求内容
     */
    OrderFreightPreviewReps freightCalc(OrderFreightPreviewReq orderFreightPreviewReq) throws JsonProcessingException;

    /**
     * 创建订单
     *
     * @param createOrderReq 请求内容
     */
    CreateOrderReps createOrder(CreateOrderReq createOrderReq) throws JsonProcessingException;
}
